//
// Created by dong on 2025/10/22.
//

#ifndef SDL_DRAW_TOOLS_SLAYOUT_H
#define SDL_DRAW_TOOLS_SLAYOUT_H
#include "Global.h"

class SLayout
{
public:
    enum class Area{Menu,Draw};
public:
    SLayout();
    void render(SDL_Renderer* render,Area type);
    bool inMenuArea(SDL_Event* msg);
    bool inDrawArea(SDL_Event* msgs);
protected:
    bool inRect(SDL_Rect rect,int x,int y);
    SDL_Rect menu_area;
    SDL_Rect draw_area[5];

};


#endif //SDL_DRAW_TOOLS_SLAYOUT_H